import java.util.Arrays;

public class transform {
   public static int[] transform(int[] array){
       int [] copy= new int [array.length];
       for(int i = 0;i < array.length;i ++){
           copy[i] = 2*array[i];
       }
       return copy;
   }
    public static void main(String[] args) {
        int[] array = new int[] {1,2,3};
        int[] copy = transform(array);
        System.out.println(Arrays.toString(copy));

    }
}
